package cn.hxth.dubbo.service.mapper;


import cn.hxth.api.model.Consumer;
import cn.hxth.api.query.ConsumerQueryObject;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface ConsumerMapper {
    boolean deleteByPrimaryKey(Integer cid);

    boolean insert(Consumer record);

    Consumer selectByPrimaryKey(Integer cid);

    List<Consumer> selectAll(ConsumerQueryObject consumerQueryObject);

    boolean updateByPrimaryKey(Consumer record);

    Integer selectForCount(ConsumerQueryObject consumerQueryObject);

    boolean updateTotal(Consumer consumer);
}